﻿
using System.Collections.Generic;

namespace Gola.VN.Scb.Web.Bll
{
    public class BizPackage
    {
        public ModelType Model { get; set; }
        public BizEvent Event { get; set; }
        public object Input { get; set; }
        public List<object> MultiInput { get; set; }
        public object Output { get; set; }
    }

    public enum ModelType
    {
        Product,
        Provider,
        Category,
        Customer,
        Search
    }

    public enum BizEvent
    {
        // product
        GetProducts,
        GetProductById,
        GetProductsByTitle,
        GetProductsByCategoryId,
        GetProductsByProviderIdAndCategoryName,
        GetProductsByProductTitle,
        GetOthersProductByTitle,
        GetOthersProductByCategoryId,
        UpdateProductViewCount,
        InsertProduct,
        GetRandomCategory,
        GetHostCategories,

        // provider
        GetProviders,
        GetProviderById,
        GetProviderByName,
        InsertProvider,
        UpdateProvider,

        // category
        GetCategoryAsFlat,
        GetCategoryAsTree,
        GetLocations,
        GetSubcategories,
        GetNavigateData,
        GetCategoryById,
        GetChildCategories,
        GetCategoriesByProviderId,
        GetSubCategoriesAsTree,
        GetCloudCategory,

        //Search
        DoSearch,
        GetSearchHistories,
        UpdateSearchHistory
    }
}
